#include <tsin/library/DynamicList.hpp>
#include <tsin/library/DynamicLoopList.hpp>
#include <tsin/library/DynamicSerialList.hpp>
#include <tsin/library/DynamicParallelList.hpp>
#include <cstring>

using namespace tsin;

DynamicObject *DynamicList::getDynamicList(const char *sort)
{
        if (strcmp(sort, "Serial") == 0)
                return new DynamicSerialList;
        else if (strcmp(sort, "Loop") == 0)
                return new DynamicLoopList;
        else if (strcmp(sort, "Parallel") == 0)
                return new DynamicParallelList;
        return 0;
}
